export const CONTRACT_STATUS = {
    COMPLETED: 2,
    FULFILLING: 1,
} as const

export const CONTRACT_STATUS_OPTIONS = [
    {
        label: '履约中',
        value: CONTRACT_STATUS.FULFILLING,
    },
    {
        label: '已完成',
        value: CONTRACT_STATUS.COMPLETED,
    },
]

export const BUYER_ORDER_QUERY_TYPE = {
    APPLY_ORDER: 1,
    RECEIVE_ORDER: 2,
} as const

export const DELIVERY_ORDER_QUERY_TYPE = {
    ACCEPTED: 3,
    DELIVERED: 1,
    RECEIVED: 2,
} as const

export const DELIVERY_ORDER_STATE = {
    ACCEPT_REJECTED: 5,
    ACCEPTED: 4,
    DELIVERED: 1,
    RECEIVED: 2,
    TO_ACCEPT: 3,
} as const

export const DELIVERY_ORDER_STATE_OPTIONS = [
    {
        label: '待验收',
        value: DELIVERY_ORDER_STATE.TO_ACCEPT,
    },
    {
        label: '待接收',
        value: DELIVERY_ORDER_STATE.RECEIVED,
    },
    {
        label: '已发货',
        value: DELIVERY_ORDER_STATE.DELIVERED,
    },
    {
        label: '已验收',
        value: DELIVERY_ORDER_STATE.ACCEPTED,
    },
    {
        label: '验收被驳回',
        value: DELIVERY_ORDER_STATE.ACCEPT_REJECTED,
    },
]

export const REQUEST_STATUS = {
    ACCEPTED: '3',
    APPLYING: '1',
    COMPLETED: '7',
    PAID: '4',
    RECALLED: '5',
    REJECTED: '2',
    RETURNED: '6',
} as const

export const REQUEST_STATUS_OPTIONS = [
    {
        label: '申请中',
        value: REQUEST_STATUS.APPLYING,
    },
    {
        label: '已驳回',
        value: REQUEST_STATUS.REJECTED,
    },
    {
        label: '已接收',
        value: REQUEST_STATUS.ACCEPTED,
    },
    {
        label: '已付款',
        value: REQUEST_STATUS.PAID,
    },
    {
        label: '已撤回',
        value: REQUEST_STATUS.RECALLED,
    },
    {
        label: '已退回',
        value: REQUEST_STATUS.RETURNED,
    },
    {
        label: '已完成',
        value: REQUEST_STATUS.COMPLETED,
    },
]
